<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include_once("inc/TencentTOauth.php");
include_once("inc/SinaTOauth.php");
include_once("inc/NtesTOauth.php");
include_once("inc/SohuTOauth.php");
include_once("inc/DouBanTOauth.php");
include_once("inc/RenRenOauth.php");
header("content-type:text/html; charset=utf-8");
$content = "测试PHP 发送微博";
//腾讯
//$tencent = new TencentTOauth();
//print_r($tencent->QWeiAdd("测试用"));
//新浪
//$sina = new SinaTOauth();
//print_r($sina->SinaAdd("测试PHP代码 发送微博。。。"));
//搜狐
//$sohu = new SohuTOauth();
//print_r($sohu->SohuWeiAdd($content));
//网易
//$ntes = new NtesTOauth();
//print_r($ntes->NtesWeiAdd($content));
//豆瓣
//$douban = new DouBanTOauth();
//var_dump($douban->DouBanOAuthUser());
//print_r($douban->DoubanAdd($content));
//人人
$renren = new RenRenOauth();
print_r($renren->StatusUpdate($content));

?>